package com.songlanyun.modules.integralconfig.controller.api;

//import org.apache.shiro.authz.annotation.RequiresPermissions;

import com.songlanyun.common.annotation.RepeatSubmit;
import com.songlanyun.common.annotation.SysLog;
import com.songlanyun.common.utils.R;
import com.songlanyun.common.validator.ValidatorUtils;
import com.songlanyun.modules.integralconfig.entity.IntegralConfig;
import com.songlanyun.modules.integralconfig.service.IntegralConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 平台积分配置表
 *
 * @author wuchao
 * @email sunlightcs@gmail.com
 * @date 2021-02-25 15:33:55
 */
@RestController
@RequestMapping("api/integral/config")
public class IntegralConfigApiController {
    @Autowired
    private IntegralConfigService integralConfigService;


    /**
     * 积分配置
     */
    @GetMapping("/info")
    //@RequiresPermissions("integralconfig:integralconfig:info")
    public R info() {
        IntegralConfig integralConfig = integralConfigService.get();
        return R.ok().put("data", integralConfig);
    }


}
